home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Sending AppleEvents from contai < prev    next >
Encoding:
Internet Message Format  |  1996-08-15  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     Sending AppleEvents from container to embedded parts
  2. Sent:        8/15/96 10:53 AM
  3. Received:    8/15/96 11:01 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I am reposting this message. 
  9.  
  10.  
  11. ---------------------------------------------------------------------------
  12. ----
  13.  
  14.  
  15. Like a number of other people on this list, I'm trying to get my container
  16. to send AppleEvents to embedded parts.  The code we're using is 
  17. practically
  18. identical to the function posted to this list on August 6th by
  19. phayes@umich.edu.  Like her, we're finding that ODMessageInterface::Send 
  20. is
  21. failing with error -1728 (errAENoSuchObject).  Was anyone able to suggest 
  22. a
  23. solution for that problem?
  24.  
  25. We're using ODMessageInterface::CreatePartObjSpec to create the
  26. object-specifier for the destination part, which gets passed (with the
  27. property's specifier) to FW_CreateObjSpecifier to create a direct object.
  28. Is this the recommended way to create a specifier referring to a property
  29. of an embedded part?  There also seems to be a ODMessageInterface function
  30. called EmbeddedFrameSpec... would that work in place of CreatePartObjSpec?
  31.  
  32. None of the ODF R1 samples do this, and the whole area of inter-part
  33. communication within ODF seems rather murky and undocumented... is it too
  34. late to suggest that recipes or sample code for this kind of task should 
  35. be
  36. part of the ODF R2 distribution?
  37.  
  38. Thanks for your time,
  39.  
  40. Eric Smith
  41. Tarkvara Design
  42.  
  43.  
  44.  
  45. ........................................................................
  46.  Henri Lamiraux                                      lamiraux@apple.com
  47.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  48. ........................................................................
  49.  
  50.  
  51.